{extend name="admin@index_layout"/}
{block name="main"}
<form class="layui-form" method="post">
    <input type="hidden" name="id" value="{$data.id}">
    <div class="layui-form-item">
        <label>更多图片：</label>
        <!--        <label class="layui-form-label layui-form-item-required">主图</label>-->
        <div class="w300">
            <input value="{$data.img}" type="text" lay-verify="required" name="img" id="c-pic" value="" class="layui-input">
        </div>
        <button data-multiple="true" type="button" class="layui-btn faupload" id="faupload-pic"  data-input-id="c-pic"
                data-preview-id="p-pic" data-type="image"  data-max-select-limit=4><i class="layui-icon layui-icon-upload"></i> 上传
        </button>
        <button type="button" class="layui-btn fachoose" data-multiple="true" data-mimetype="image"
                data-input-id="c-pic" id="fachoose-c-pic" data-max-select-limit=4><i class="iconfont icon-other"></i> 选择
        </button>
        <ul class="layui-row list-inline plupload-preview" id="p-pic"></ul>
    </div>
    <div class="layui-form-item">
        <div>
            <button class="layui-btn" lay-submit>立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>

{/block}
{block name="script"}
<!--<style>-->
<!--    #edui148, #edui153, #edui165, #edui170, #edui175 {-->
<!--        display: none !important;-->
<!--    }-->
<!--</style>-->
<script type="text/javascript" src="__STATIC__/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="__STATIC__/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript" charset="utf-8" src="__STATIC__/ueditor/lang/zh-cn/zh-cn.js"></script>
<script>
    // UE.getEditor('content', {
    //     toolbars: [
    //         [
    //             'fullscreen', 'source', '|', 'undo', 'redo', '|',
    //             'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc', '|',
    //             'rowspacingtop', 'rowspacingbottom', 'lineheight', '|',
    //             'customstyle', 'paragraph', 'fontfamily', 'fontsize', '|',
    //             'directionalityltr', 'directionalityrtl', 'indent', '|',
    //             'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|', 'touppercase', 'tolowercase', '|',
    //             'link', 'unlink', 'anchor', '|', 'imagenone', 'imageleft', 'imageright', 'imagecenter', '|',
    //             'simpleupload', 'insertimage', 'emotion', 'scrawl', 'insertvideo', 'music', 'attachment'
    //         ]
    //     ], initialFrameWidth: 800, initialFrameHeight: 400
    // });
</script>
<script type="text/javascript">
    layui.use(['yznForm', 'laydate'], function () {
        var yznForm = layui.yznForm,
            laydate = layui.laydate;

        yznForm.bindevent($("form.layui-form"));

        laydate.render({
            elem: '#ID-laydate'
        });

    });
</script>
{/block}